package Expe5;

/**
 * @Author sy
 * @Date 2022/9/20
 */
public class Expe5T6 {
    public static void main(String[] args) {
        Circle c1 = new Circle();
        double r = c1.radius = 6.88;
        System.out.println("该圆的周长为："+c1.getC());
    }
    static class Circle {
        double radius;
        double getC() {
            double C = Math.PI * radius * 2;
            return C;
        }
    }
}

